package com.xoa.service.event;

import com.xoa.model.event.*;
import com.xoa.util.ToJson;
import com.xoa.util.page.PageParams;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * Created by 张丽军 on 2017/8/30.
 */
@Service
public interface TimeLineService {

    ToJson<TimeLine> getDetailByUuid(HttpServletRequest request,String uuid);

    ToJson<TimeLine> getTimeLineByUuid(HttpServletRequest request,String uuid);

    ToJson<TimeLine> getInforList(HttpServletRequest request, TimeLine timeLine);

    ToJson<TimeLine> getInforList1(HttpServletRequest request, TimeLine timeLine);

    ToJson<TimeLine> updateData(HttpServletRequest request, TimeLine timeLine,TimeLinePostDept timeLinePostDept,
                                TimeLinePostRole timeLinePostRole,TimeLinePostUser timeLinePostUser,
                                TimeLineViewDept timeLineViewDept,TimeLineViewRole timeLineViewRole,TimeLineViewUser timeLineViewUser,
                                String post1,String post2,String post3,String view1,String view2,String view3);

    ToJson<TimeLine> deleteByUuid(HttpServletRequest request, String uuid);

    ToJson<TimeLine> addData(HttpServletRequest request,TimeLine timeLine,String post1,String post2,String post3,String view1,String view2,String view3);

    List<TimeLine> getTimelines(HttpServletRequest request) throws UnsupportedEncodingException;

    List<TimeLine> getPageTimelines(HttpServletRequest request, PageParams page, Map map) throws UnsupportedEncodingException;

    List<TimeLine> postTimelines(HttpServletRequest request, PageParams page,String uuid);

    ToJson<Object>  getTimelineCode(HttpServletRequest request,String uuid);
}
